package com.example.a_java.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.a_java.entity.LoanInspectionAttachment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 贷后检查附件Mapper接口
 */
@Mapper
public interface LoanInspectionAttachmentMapper extends BaseMapper<LoanInspectionAttachment> {
    
    /**
     * 根据检查ID查询附件列表
     */
    @Select("SELECT * FROM loan_inspection_attachment WHERE inspection_id = #{inspectionId}")
    List<LoanInspectionAttachment> findByInspectionId(@Param("inspectionId") Long inspectionId);
} 
